package com.anXin.article.service.impl;

import com.anXin.article.mapper.ArticleChannelMapper;
import com.anXin.article.service.ArticleChannelService;
import com.anXin.model.article.pojos.ArticleChannel;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import utils.common.PageUtils;
import utils.common.Query;

import java.util.Map;

@Service("articleChannelTableService")
public class ArticleChannelServiceImpl extends ServiceImpl<ArticleChannelMapper, ArticleChannel> implements ArticleChannelService {
    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ArticleChannel> page = this.page(
                new Query<ArticleChannel>().getPage(params),
                new QueryWrapper<ArticleChannel>()
        );

        return new PageUtils(page);
    }
}


